@extends('admin.common.main')

@section('content')

    <form action="{{route('admin.role.node',$role)}}" method="post">

        @csrf
        @foreach($data as $val)
            <div>
                <input type="checkbox" value="{{$val['id']}}" name="node[]"
                       @if(in_array($val['id'],$roleNode))checked  @endif>

        {{$val['html']}}{{$val['name']}}

            </div>

        @endforeach

        <button type="submit">提交</button>
    </form>

@endsection


